package com.zp.business.mapper.prescription;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zp.business.api.prescription.PrescriptionApply;
import com.zp.business.api.prescription.bo.PrescriptionApplyBo;
import com.zp.business.api.prescription.vo.PrescriptionApplyVo;
import com.zp.common.myBatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 处方主表Mapper接口
 *
 * @author zhang peng
 * @ date 2024-03-22
 */
@Repository
public interface PrescriptionApplyMapper extends BaseMapperPlus<PrescriptionApplyMapper, PrescriptionApply, PrescriptionApplyVo> {

    /**
     * 分页
     *
     * @param page
     * @param bo
     * @return
     */
    Page<PrescriptionApplyVo> selectVoPage(@Param("page") Page<PrescriptionApplyBo> page, @Param("bo") PrescriptionApplyBo bo);

    /**
     * 不分页
     *
     * @param bo
     * @return
     */
    List<PrescriptionApplyVo> selectVoPage(@Param("bo") PrescriptionApplyBo bo);
}
